import { createRouter, createWebHashHistory } from 'vue-router'

export default createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: { name: 'Home' },
      children: [
        {
          path: '/',
          name: 'Home',
          component: () => import('./pages/Home.vue')
        },
        {
          path: 'setting',
          component: () => import('./pages/Settings.vue')
        }
      ]
    }
  ]
})
